package com.tdr.myandroid.model;

/**
 * Created by lemingdeng on 2014-07-13.
 */
public abstract class ActionObject {
    public final static int ACTION_TYPE_SMS =   0;

    private int id = 0;

    private String targetString = null;
    private String contentString = null;
    private String extraInfoString = null;

    public static ActionObject createAction(int actionType, int id) {
        ActionObject createAction = null;

        switch (actionType) {
            case ACTION_TYPE_SMS:
                createAction = new ActionSms(id);
                break;
            default:
                createAction = null;
        }

        return createAction;
    }

    public abstract void perform();

    public ActionObject(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public String getTargetString() {
        return targetString;
    }

    public void setTargetString(String targetString) {
        this.targetString = targetString;
    }

    public String getContentString() {
        return contentString;
    }

    public void setContentString(String contentString) {
        this.contentString = contentString;
    }

    public String getExtraInfoString() {
        return extraInfoString;
    }

    public void setExtraInfoString(String extraInfoString) {
        this.extraInfoString = extraInfoString;
    }

}
